package com.xh.web.domain;

import com.fasterxml.jackson.annotation.JsonFormat;



import java.util.Date;

/**
 * 字段对象 d_column
 *
 * @author dongxuefei
 * @date 2020-09-04
 */
public class DColumn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 项目ID */
    private String projectId;

    /** 表ID */
    private String tableId;

    /** 字段code */
    private String columnCode;

    /** 字段名称 */
    private String columnName;

    /** 数据类型 */
    private String dataType;

    /** 长度 */
    private String dLength;

    /** 非空(0:否，1：是。默认0) */
    private String isEmpty;

    /** 是否主键(0:否，1：是。默认0) */
    private String isPrimarykey;

    /** 默认值 */
    private String defaultValue;

    /** 排序 */
    private Long dSort;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createDate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateDate;

    /** 删除标记 */
    private String delFlag;

    /** 索引名 */
    private String indexName;

    /** 索引类型 */
    private String indexType;

    /** 索引列 */
    private String indexColumn;

    /** 主键表 */
    private String keyTableCode;

    /** 主键列 */
    private String keyTableColumn;

    /** 索引表ID */
    private String indexId;

    /** 是否只建立关系 */
    private String isRelation;

    /** 主键策略 */
   private String pramrykeyRule;

    /** 表代码 */
    private String tableCode;


    /** 中文索引类型 */
    private String indexCtype;

    /** 模板ID */
    private String templateId;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setProjectId(String projectId)
    {
        this.projectId = projectId;
    }

    public String getProjectId()
    {
        return projectId;
    }
    public void setTableId(String tableId)
    {
        this.tableId = tableId;
    }

    public String getTableId()
    {
        return tableId;
    }
    public void setColumnCode(String columnCode)
    {
        this.columnCode = columnCode;
    }

    public String getColumnCode()
    {
        return columnCode;
    }
    public void setColumnName(String columnName)
    {
        this.columnName = columnName;
    }

    public String getColumnName()
    {
        return columnName;
    }
    public void setDataType(String dataType)
    {
        this.dataType = dataType;
    }

    public String getDataType()
    {
        return dataType;
    }
    public void setdLength(String dLength)
    {
        this.dLength = dLength;
    }

    public String getdLength()
    {
        return dLength;
    }
    public void setIsEmpty(String isEmpty)
    {
        this.isEmpty = isEmpty;
    }

    public String getIsEmpty()
    {
        return isEmpty;
    }
    public void setIsPrimarykey(String isPrimarykey)
    {
        this.isPrimarykey = isPrimarykey;
    }

    public String getIsPrimarykey()
    {
        return isPrimarykey;
    }
    public void setDefaultValue(String defaultValue)
    {
        this.defaultValue = defaultValue;
    }

    public String getDefaultValue()
    {
        return defaultValue;
    }
    public void setdSort(Long dSort)
    {
        this.dSort = dSort;
    }

    public Long getdSort()
    {
        return dSort;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate)
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate()
    {
        return updateDate;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public void setIndexName(String indexName)
    {
        this.indexName = indexName;
    }

    public String getIndexName()
    {
        return indexName;
    }
    public void setIndexType(String indexType)
    {
        this.indexType = indexType;
    }

    public String getIndexType()
    {
        return indexType;
    }
    public void setIndexColumn(String indexColumn)
    {
        this.indexColumn = indexColumn;
    }

    public String getIndexColumn()
    {
        return indexColumn;
    }
    public void setKeyTableCode(String keyTableCode)
    {
        this.keyTableCode = keyTableCode;
    }

    public String getKeyTableCode()
    {
        return keyTableCode;
    }
    public void setKeyTableColumn(String keyTableColumn)
    {
        this.keyTableColumn = keyTableColumn;
    }

    public String getKeyTableColumn()
    {
        return keyTableColumn;
    }
    public void setIndexId(String indexId)
    {
        this.indexId = indexId;
    }

    public String getIndexId()
    {
        return indexId;
    }
    public void setIsRelation(String isRelation)
    {
        this.isRelation = isRelation;
    }

    public String getIsRelation()
    {
        return isRelation;
    }

    public String getPramrykeyRule() {
        return pramrykeyRule;
    }

    public void setPramrykeyRule(String pramrykeyRule) {
        this.pramrykeyRule = pramrykeyRule;
    }

    public void setTableCode(String tableCode)
    {
        this.tableCode = tableCode;
    }

    public String getTableCode()
    {
        return tableCode;
    }

    public void setIndexCtype(String indexCtype) {
        this.indexCtype = indexCtype;
    }

    public String getIndexCtype() {
        return indexCtype;
    }

    @Override
    public String toString() {
        return "DColumn{" +
                "id='" + id + '\'' +
                ", projectId='" + projectId + '\'' +
                ", tableId='" + tableId + '\'' +
                ", columnCode='" + columnCode + '\'' +
                ", columnName='" + columnName + '\'' +
                ", dataType='" + dataType + '\'' +
                ", dLength='" + dLength + '\'' +
                ", isEmpty='" + isEmpty + '\'' +
                ", isPrimarykey='" + isPrimarykey + '\'' +
                ", defaultValue='" + defaultValue + '\'' +
                ", dSort=" + dSort +
                ", createDate=" + createDate +
                ", updateDate=" + updateDate +
                ", delFlag='" + delFlag + '\'' +
                ", indexName='" + indexName + '\'' +
                ", indexType='" + indexType + '\'' +
                ", indexColumn='" + indexColumn + '\'' +
                ", keyTableCode='" + keyTableCode + '\'' +
                ", keyTableColumn='" + keyTableColumn + '\'' +
                ", indexId='" + indexId + '\'' +
                ", isRelation='" + isRelation + '\'' +
                ", pramrykeyRule='" + pramrykeyRule + '\'' +
                ", tableCode='" + tableCode + '\'' +
                ", indexCtype='" + indexCtype + '\'' +
                '}';
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }
}
